/*    */ package server.maps;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import constants.GameConstants;
/*    */ import java.awt.Point;
/*    */ import java.awt.Rectangle;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class MapleMapObject
/*    */ {
/* 15 */   private final Point position = new Point();
/*    */   private int objectId;
/*    */   
/*    */   public Point getPosition() {
/* 19 */     return new Point(this.position);
/*    */   }
/*    */   
/*    */   public void setPosition(Point position) {
/* 23 */     this.position.x = position.x;
/* 24 */     this.position.y = position.y;
/*    */   }
/*    */   
/*    */   public Point getTruePosition() {
/* 28 */     return this.position;
/*    */   }
/*    */   
/*    */   public int getObjectId() {
/* 32 */     return this.objectId;
/*    */   }
/*    */   
/*    */   public void setObjectId(int id) {
/* 36 */     this.objectId = id;
/*    */   }
/*    */   
/*    */   public Double getRange() {
/* 40 */     return GameConstants.maxViewRangeSq();
/*    */   }
/*    */   
/*    */   public Rectangle getBounds() {
/* 44 */     return new Rectangle((getPosition()).x - 50, (getPosition()).y - 75, 50, 75);
/*    */   }
/*    */   
/*    */   public abstract MapleMapObjectType getType();
/*    */   
/*    */   public abstract void sendSpawnData(MapleClient paramMapleClient);
/*    */   
/*    */   public abstract void sendDestroyData(MapleClient paramMapleClient);
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\maps\MapleMapObject.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */